#test tcp_client

import socket
import sys
client = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
client.connect(("192.168.1.10", 5000))
client.setblocking(1)

while 1:
    try:
        data = int(client.recv ( 512 ))
    except:
        data = -1
        sys.exc_clear
    if data > 19:
        print data
        client.send(str(50))
    
